package Demo3;

public class Car {
    public String name;
    public int age;

    public Car(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public class Engine {
        public String name;
        public int age;

        public Engine(String name, int age) {
            this.name = name;
            this.age = age;
        }

        public void show() {
            System.out.println(Car.this.name + " " + Car.this.age);
        }
    }
}
